package fl.ass.service.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import fl.ass.facade.condition.AssSchFeeMQueryCondition;
import fl.ass.service.dao.AssSchFeeMMapper;
import fl.ass.facade.dto.AssSchFeeMDTO;
import fl.ass.service.po.AssSchFeeM;
import fl.ass.service.service.IAssSchFeeMService;
import fl.ass.service.transform.AssSchFeeMTransform;
import cmm.service.core.framework.biz.BaseBizImpl;
import cmm.service.core.framework.dao.IBaseDao;
import cn.cmm.base.framework.exception.BaseException;

/**
 * @Description: 支付表费用项表 服务层接口实现
 * @Description: 类中已经实现了简单增删改查操作,可以直接使用,如果有需要重写该方法即可：
 * @Description: 1、add(TVO entity) 2、removeById(Long id) 3、modify(DTO entity) 4、selectById(Long id)	5、searchListPage(Pager page) 7、searchList(DTO dto)   
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
@Service
public class AssSchFeeMServiceImpl extends BaseBizImpl<AssSchFeeM, AssSchFeeMDTO, AssSchFeeMQueryCondition> implements IAssSchFeeMService {
	
	@SuppressWarnings("unused")
	private static final Logger logger = LoggerFactory.getLogger(IAssSchFeeMService.class);
	
	@Autowired
	private AssSchFeeMMapper assSchFeeMMapper;
	
	@Override
	public List<AssSchFeeMDTO> searchList(AssSchFeeMQueryCondition condition) throws BaseException {
		if(null == condition) return new ArrayList<AssSchFeeMDTO>();
		List<AssSchFeeM> list = this.assSchFeeMMapper.selectList(condition);
		return AssSchFeeMTransform.toDTOList(list);
	}
	
	@Override
	public IBaseDao<AssSchFeeM,AssSchFeeMQueryCondition> getDao() {
		return this.assSchFeeMMapper;
	}
}

